package game;

import java.util.Random;

public class Dice 
{
	private int die1;
	private int die2;
	private Random randomGenerator;
	
	public Dice()
	{
		randomGenerator = new Random();
	}
	
	public int getDie1() {
		return die1;
	}
	public void setDie1(int newValue) {
		die1 = newValue;
	}
	public int getDie2() {
		return die2;
	}
	public void setDie2(int newValue) {
		die2 = newValue;
	}
	public int getSum() {
		return die1 + die2;
	}
	public void setSum(int sum) {
		//no action
	}
	
	public void shoot()
	{
		setDie1(Math.round(randomGenerator.nextInt(5) + 1));
		setDie2(Math.round(randomGenerator.nextInt(5) + 1));
	}

}
